const data = require("./src/mock/data")
// const BodyParser = require("body-parser")
module.exports = {
  devServer: {
    proxy: {
      '/api': {
        target: 'http://106.14.215.141:8009', // 请求服务器根路径
        pathRewrite: {
          '^/api': ''
        },
      }
    },
    before:(app)=>{
      app.get("/api/list",(req,res)=>{
        res.send({
          code:0,
          data
        })
      })
    }
  },
}